.class public Lcom/xingbook/group/helper/a;
.super Ljava/lang/Object;


# static fields
.field public static a:Z

.field public static b:Z

.field private static c:Ljava/util/ArrayList;

.field private static d:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-boolean v0, Lcom/xingbook/group/helper/a;->a:Z

    sput-boolean v0, Lcom/xingbook/group/helper/a;->b:Z

    const/4 v0, 0x1

    sput-boolean v0, Lcom/xingbook/group/helper/a;->d:Z

    return-void
.end method

.method public static a()Ljava/util/ArrayList;
    .locals 1

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    :cond_0
    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    return-object v0
.end method

.method public static a(Lcom/xingbook/group/a/b;Z)V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/group/a/b;->f:Z

    iget-object v0, p0, Lcom/xingbook/group/a/b;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/group/helper/a;->a(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    :cond_0
    if-eqz p1, :cond_1

    sput-boolean p1, Lcom/xingbook/group/helper/a;->a:Z

    :cond_1
    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_2
    return-void
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 4

    const/4 v1, 0x1

    const/4 v2, 0x0

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    if-eqz p0, :cond_2

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_2

    const/16 v0, 0x23

    invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C

    move-result v3

    if-ne v0, v3, :cond_2

    move v0, v1

    :goto_0
    return v0

    :cond_1
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/group/a/b;

    iget-object v0, v0, Lcom/xingbook/group/a/b;->a:Ljava/lang/String;

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v1

    goto :goto_0

    :cond_2
    move v0, v2

    goto :goto_0
.end method

.method public static a(Ljava/lang/String;Z)Z
    .locals 5

    const/4 v1, 0x0

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    if-nez p0, :cond_1

    :cond_0
    move v0, v1

    :goto_0
    return v0

    :cond_1
    const/4 v2, 0x0

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_2
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_4

    move-object v0, v2

    :goto_1
    if-eqz v0, :cond_5

    if-eqz p1, :cond_3

    sput-boolean p1, Lcom/xingbook/group/helper/a;->a:Z

    :cond_3
    sget-object v1, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    move-result v0

    goto :goto_0

    :cond_4
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/group/a/b;

    iget-object v4, v0, Lcom/xingbook/group/a/b;->a:Ljava/lang/String;

    invoke-virtual {p0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    goto :goto_1

    :cond_5
    move v0, v1

    goto :goto_0
.end method

.method public static b()V
    .locals 1

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/xingbook/group/helper/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    :cond_0
    const/4 v0, 0x0

    sput-boolean v0, Lcom/xingbook/group/helper/a;->b:Z

    const/4 v0, 0x1

    sput-boolean v0, Lcom/xingbook/group/helper/a;->d:Z

    return-void
.end method

.method public static b(Ljava/lang/String;)Z
    .locals 3

    const/4 v0, 0x0

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    const/16 v1, 0x23

    invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C

    move-result v2

    if-ne v1, v2, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public static c()Z
    .locals 3

    const/4 v2, 0x1

    sget-boolean v0, Lcom/xingbook/group/helper/a;->d:Z

    if-nez v0, :cond_0

    sget-boolean v0, Lcom/xingbook/group/helper/a;->b:Z

    if-nez v0, :cond_1

    :cond_0
    invoke-static {}, Lcom/xingbook/group/c/a;->a()Lcom/xingbook/group/c/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/group/c/a;->c()Lcom/xingbook/park/e/c;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/park/e/a;->a(Lcom/xingbook/park/e/c;)I

    move-result v0

    if-ne v0, v2, :cond_2

    sput-boolean v2, Lcom/xingbook/group/helper/a;->b:Z

    const/4 v0, 0x0

    sput-boolean v0, Lcom/xingbook/group/helper/a;->d:Z

    :cond_1
    :goto_0
    sget-boolean v0, Lcom/xingbook/group/helper/a;->b:Z

    return v0

    :cond_2
    const/4 v1, 0x3

    if-ne v0, v1, :cond_1

    sput-boolean v2, Lcom/xingbook/group/helper/a;->b:Z

    goto :goto_0
.end method
